﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Infrastructure.Aspect.DynamicData.Fields;
using System.ComponentModel;

namespace Skynet.BusinessEntities
{
    [MetadataType(typeof(CustomerDynamicData))]
    public partial  class Customer
    {
        public Customer()
        {
            
        }
    }
    [ScaffoldTable(true)]  
    public class CustomerDynamicData 
    {
        
        [Key]
        [ScaffoldColumn(false)]
        [AutoGenerateField(true)]
        [Display(AutoGenerateField=false)]
        public Guid Id { get; set; }



        [Display(Name="Nombre")]
        [DisplayName("Nombre")]
        [Required]
        public string Name { get; set; }

        [ScaffoldColumn(true)]        
        public DateTime BirthDate { get; set; }

    }
}
